package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户管理对象 user
 * 
 * @author ruoyi
 * @date 2022-12-02
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 阿里用户id */
    @Excel(name = "阿里用户id")
    private String aliId;

    /** 账号 */
    @Excel(name = "账号")
    private String account;

    /** 头像 */
    @Excel(name = "头像")
    private String headImage;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 实名认证 */
    @Excel(name = "实名认证")
    private String auth;

    /** 积分 */
    @Excel(name = "积分")
    private Long score;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH-mm-ss")
    private Date regTime;

    /** 0女1男 */
    @Excel(name = "0女1男")
    private String sex;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAliId(String aliId) 
    {
        this.aliId = aliId;
    }

    public String getAliId() 
    {
        return aliId;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }
    public void setHeadImage(String headImage) 
    {
        this.headImage = headImage;
    }

    public String getHeadImage() 
    {
        return headImage;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setAuth(String auth) 
    {
        this.auth = auth;
    }

    public String getAuth() 
    {
        return auth;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setRegTime(Date regTime) 
    {
        this.regTime = regTime;
    }

    public Date getRegTime() 
    {
        return regTime;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("aliId", getAliId())
            .append("account", getAccount())
            .append("headImage", getHeadImage())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("auth", getAuth())
            .append("score", getScore())
            .append("regTime", getRegTime())
            .append("sex", getSex())
            .toString();
    }
}
